package com.lz.job.redis;

import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;

import redis.clients.jedis.Jedis;

/**
 * Redis连接工厂.
 *
 * @author zhaoshb
 * @since
 */
public class LZJedisConnectionFactory extends JedisConnectionFactory {

	/**
	 * 直接获取redis链接.
	 * <p>
	 * <strong>使用完后一定要关闭</strong>
	 *
	 * @return jedis.
	 */
	public Jedis fetchJedis() {
		return super.fetchJedisConnector();
	}
}
